home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / include / sys / termio.h < prev    next >
C/C++ Source or Header  |  1991-03-12  |  1KB  |  44 lines

  1. /*
  2.  * termio.h --
  3.  *
  4.  *    Declarations of structures and flags for controlling the `termio'
  5.  *      general terminal interface.
  6.  *
  7.  * Copyright 1991 Regents of the University of California
  8.  * Permission to use, copy, modify, and distribute this
  9.  * software and its documentation for any purpose and without
  10.  * fee is hereby granted, provided that the above copyright
  11.  * notice appear in all copies.  The University of California
  12.  * makes no representations about the suitability of this
  13.  * software for any purpose.  It is provided "as is" without
  14.  * express or implied warranty.
  15.  *
  16.  * $Header: /sprite/src/lib/include/sys/RCS/termios.h,v 1.1 89/01/06 07:06:35 rab Exp $
  17.  */
  18.  
  19. #ifndef _TERMIO_
  20. #define _TERMIO_
  21.  
  22. #define    TCGETA        _IOR('T', 1, struct termio)
  23. #define    TCSETA        _IOW('T', 2, struct termio)
  24. #define    TCSETAW        _IOW('T', 3, struct termio)
  25. #define    TCSETAF        _IOW('T', 4, struct termio)
  26. #define    TCSBRK        _IO('T', 5)
  27.  
  28. #define    NCC    8
  29.  
  30. /*
  31.  * Ioctl control packet
  32.  */
  33. struct termio {
  34.     unsigned short    c_iflag;    /* input */
  35.     unsigned short    c_oflag;    /* output */
  36.     unsigned short    c_cflag;    /* control */
  37.     unsigned short    c_lflag;    /* line discipline */
  38.     char        c_line;        /* line discipline number */
  39.     unsigned char    c_cc[NCC];    /* control characters */
  40. };
  41.  
  42. #endif /* _TERMIO */
  43.  
  44.